package com.ynet.middleground.approve.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ynet.middleground.approve.mq.producer.SourceProducer;

@Controller
@RequestMapping("/test")
public class TestController {

    @Autowired
    private SourceProducer sourceProducer;

    @RequestMapping("/mq")
    public @ResponseBody String mqTest(String abc) {
        sourceProducer.sendMessages(abc);
        return "success";
    }

}
